/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.groupb.circus.impl_interfaces;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Packet;

/**
 *
 * @author Alex
 */
public class Listener implements com.groupb.circus.interfaces.Listener, PacketListener {
   
   private String userContent = "USER_CONTENT";
   private String searchProfile = "SearchProfile";
   private String searchResult = "SEARCH_RESULT";
   private static Log log = LogFactory.getLog(Listener.class);
   

    @Override
    public void processPacket(Packet packet) {
       
    ////////////// IMPLEMENTAR ////////////////////
        if (packet instanceof Message) {
            Message msg = (Message) packet;
            
          // if (msg.getProperty(searchProfile) instanceof SearchProfile){
         //      log.info("El paquete es del tipo SearchProfile");
               
               
       //    }
        
    }
        
        
    
        
        
        
    }
    
}
